#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

int main()
{
	HP hp;
	HPInit(&hp);
	int a[] = { 4,1,3,6,2,5,7,9 };
	int sz = sizeof(a) / sizeof(a[0]);
	for (int i = 0;i < sz;i++)
	{
		HPPush(&hp, a[i]);
	}
	while (!HPEmpty(&hp))
	{
		int top = HPTop(&hp);
		printf("%d ", top);
		HPPop(&hp);
	}
	HPDestroy(&hp);
	return 0;
}